//1.变量
var hello = "hello word";
num = 123;
str = "文本";
// alert(hello);
// alert(num);
// alert(str);

//2.数组
var str = "数组初始化方法";
var array1 = new Array(3);
array1[0] = "0";
array1[1] = 1;
array1[2] = false;
str += "\nnew Array(3)："+array1[0] + array1[1] + array1[2];
str += "\nnew Array(\"0\",1,false)："+array1[0] + array1[1] + array1[2];
str += "\n[\"0\",1,false]："+array1[0] + array1[1] + array1[2];
alert(str);
